package cn.tanglong.pet.mapper;

import cn.tanglong.basic.mapper.BaseMapper;
import cn.tanglong.pet.domain.Pet;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PetMapper extends BaseMapper<Pet> {

    List<Pet> batchSelectByIds(@Param("ids") List<Long> ids, @Param("state") int stateOffline);

    Pet selectByIdAndState(@Param("id") Long id, @Param("state") int stateOnline);
}
